package org.kms.Controllers;

import org.kms.dao.fxinfoDao;
import org.kms.dao.fxtypeDao;
import org.kms.pojo.Fxinfo;
import org.kms.pojo.Fxtype;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/Fxtype")
@CrossOrigin(value = "*")
public class fxtype {

    @Autowired
    private fxtypeDao fxtypeDao;

    @RequestMapping("/all")
    @ResponseBody
    public List<Fxtype> all() throws Exception{
        return fxtypeDao.getAll();
    }


}
